import { Outlet, useSearchParams, Link } from "react-router-dom";

export default function Content() {
    // /content?account=123&pwd=456
    const [params] = useSearchParams()
    const account = params.get('account');
    const pwd = params.get('pwd');
    return (
        <div id="content">
            {account}
            {pwd}
            {/* <Link to={'/content/child1'}>to child1</Link> */}
            <Link to={'/content/'}>to child1</Link>
            <Link to={'/content/child2'}>to child2</Link>
            <Outlet />
        </div>

    );
}